export default {
  dev: {
    assetsSubDirectory: 'static',
        assetsPublicPath: '/',
        proxyTable: {},

        // Various Dev Server settings
        host: 'localhost', // can be overwritten by process.env.HOST
        port: 8090, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
        autoOpenBrowser: false, //是否build之后自动打开浏览器
        errorOverlay: true,
        notifyOnErrors: true,
        poll: false, // https://webpack.js.org/configuration/dev-server/#devserver-watchoptions-

  },
  

  proxyTable: { 
    '/user': {  //使用"/api"来代替"http://f.apiplus.c" 
      target: 'http://127.0.0.1:9002/user', //源地址 
      changeOrigin: true, //改变源 
      pathRewrite: { 
        '^/user': 'http://127.0.0.1:9002/user' //路径重写 
        }     
    },
       '/article': {
        target: 'http://127.0.0.1:9004/article', //源地址 
        changeOrigin: true, //改变源 
        pathRewrite: { 
          '^/article': 'http://127.0.0.1:9004/article' //路径重写 
          }     
       }
  }
}
